package org.insia.smartposse.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.insia.smartposse.metier.Company;
/**
 * Action for the first step of freelance's subscription. 
 * @author sok hout
 *
 */
public class ShowCreateCompanyAction extends Action {

	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
	throws Exception {
		Company company = new Company(-1, "","","","",0,"","","","");
		request.setAttribute("company", company);
		request.setAttribute("messages", new String[]{});
		return mapping.findForward("success");
	}

}
